package com.hello.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hello.sky.model.dto.DishDTO;
import com.hello.sky.model.dto.DishPageQueryDTO;
import com.hello.sky.model.entity.Dish;
import com.hello.sky.model.vo.DishVO;
import com.hello.sky.result.PageResult;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * <p>
 * 菜品 服务类
 * </p>
 *
 * @author D
 * @since 2024-05-06
 */
public interface DishService extends IService<Dish> {

    void addDish(DishDTO dishDTO);

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void deleteDishes(List<Long> ids);

    DishVO getDishById(Long id);

    void updateDishWithFlavor(DishDTO dishDTO);

    List<DishVO> getDishWithFlavorListByCategoryId(Long id);

    void changeStatus(Integer status, Long id);
}
